<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="MembershipCardTable">

    <div class="layui-card-body">

        <div class="layui-form-item">
            <label class="layui-form-label">卡名称：</label>
            <div class="layui-input-block">
                <input type="text" name="title" placeholder="" value='{$vo.title|default=""}' class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">专属图片</label>
            <div class="layui-input-block">
                <!-- 多图片上传 -->
                <input name="image" value='{$vo.image|default=""}' type="hidden">
                <script> $('[name=image]').uploadOneImage(); </script>
                <p style="color: red">注意:请上传400*100的图片</p>
            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">累消或直充金额：</label>
            <div class="layui-input-block">
                <input type="text" name="amount" placeholder="" value='{$vo.amount|default=""}' class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">每月低消：</label>
            <div class="layui-input-block">
                <input type="text" name="low_amount" placeholder="" value='{$vo.low_amount|default=""}' class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">副卡数量：</label>
            <div class="layui-input-block">
                <input type="number" name="secondary_card_num" placeholder="" value='{$vo.secondary_card_num|default="0"}' class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">权益：</label>
            <div class="layui-input-block">
                <textarea placeholder="" class="layui-textarea" name="remark">{$vo.remark|default=""}</textarea>
            </div>
        </div>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消编辑吗？')}" data-close>{:lang('取消编辑')}</button>
    </div>
</form>
